/*
 * This file is part of ELCube.
 *
 * ELCube is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ELCube is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with ELCube.  If not, see <https://www.gnu.org/licenses/>.
 */
package cn.nkpro.elcube.security.gen;

import java.util.ArrayList;
import java.util.List;

public class AuthLimitExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public AuthLimitExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLimitIdIsNull() {
            addCriterion("LIMIT_ID is null");
            return (Criteria) this;
        }

        public Criteria andLimitIdIsNotNull() {
            addCriterion("LIMIT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andLimitIdEqualTo(String value) {
            addCriterion("LIMIT_ID =", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdNotEqualTo(String value) {
            addCriterion("LIMIT_ID <>", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdGreaterThan(String value) {
            addCriterion("LIMIT_ID >", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdGreaterThanOrEqualTo(String value) {
            addCriterion("LIMIT_ID >=", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdLessThan(String value) {
            addCriterion("LIMIT_ID <", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdLessThanOrEqualTo(String value) {
            addCriterion("LIMIT_ID <=", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdLike(String value) {
            addCriterion("LIMIT_ID like", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdNotLike(String value) {
            addCriterion("LIMIT_ID not like", value, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdIn(List<String> values) {
            addCriterion("LIMIT_ID in", values, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdNotIn(List<String> values) {
            addCriterion("LIMIT_ID not in", values, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdBetween(String value1, String value2) {
            addCriterion("LIMIT_ID between", value1, value2, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitIdNotBetween(String value1, String value2) {
            addCriterion("LIMIT_ID not between", value1, value2, "limitId");
            return (Criteria) this;
        }

        public Criteria andLimitDescIsNull() {
            addCriterion("LIMIT_DESC is null");
            return (Criteria) this;
        }

        public Criteria andLimitDescIsNotNull() {
            addCriterion("LIMIT_DESC is not null");
            return (Criteria) this;
        }

        public Criteria andLimitDescEqualTo(String value) {
            addCriterion("LIMIT_DESC =", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescNotEqualTo(String value) {
            addCriterion("LIMIT_DESC <>", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescGreaterThan(String value) {
            addCriterion("LIMIT_DESC >", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescGreaterThanOrEqualTo(String value) {
            addCriterion("LIMIT_DESC >=", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescLessThan(String value) {
            addCriterion("LIMIT_DESC <", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescLessThanOrEqualTo(String value) {
            addCriterion("LIMIT_DESC <=", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescLike(String value) {
            addCriterion("LIMIT_DESC like", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescNotLike(String value) {
            addCriterion("LIMIT_DESC not like", value, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescIn(List<String> values) {
            addCriterion("LIMIT_DESC in", values, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescNotIn(List<String> values) {
            addCriterion("LIMIT_DESC not in", values, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescBetween(String value1, String value2) {
            addCriterion("LIMIT_DESC between", value1, value2, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitDescNotBetween(String value1, String value2) {
            addCriterion("LIMIT_DESC not between", value1, value2, "limitDesc");
            return (Criteria) this;
        }

        public Criteria andLimitLevelIsNull() {
            addCriterion("LIMIT_LEVEL is null");
            return (Criteria) this;
        }

        public Criteria andLimitLevelIsNotNull() {
            addCriterion("LIMIT_LEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andLimitLevelEqualTo(String value) {
            addCriterion("LIMIT_LEVEL =", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelNotEqualTo(String value) {
            addCriterion("LIMIT_LEVEL <>", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelGreaterThan(String value) {
            addCriterion("LIMIT_LEVEL >", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelGreaterThanOrEqualTo(String value) {
            addCriterion("LIMIT_LEVEL >=", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelLessThan(String value) {
            addCriterion("LIMIT_LEVEL <", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelLessThanOrEqualTo(String value) {
            addCriterion("LIMIT_LEVEL <=", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelLike(String value) {
            addCriterion("LIMIT_LEVEL like", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelNotLike(String value) {
            addCriterion("LIMIT_LEVEL not like", value, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelIn(List<String> values) {
            addCriterion("LIMIT_LEVEL in", values, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelNotIn(List<String> values) {
            addCriterion("LIMIT_LEVEL not in", values, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelBetween(String value1, String value2) {
            addCriterion("LIMIT_LEVEL between", value1, value2, "limitLevel");
            return (Criteria) this;
        }

        public Criteria andLimitLevelNotBetween(String value1, String value2) {
            addCriterion("LIMIT_LEVEL not between", value1, value2, "limitLevel");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table nk_auth_limit
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table nk_auth_limit
     *
     * @mbggenerated
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}